<table id="table-main-two-columns">
	<tr>
		<td valign="top">
			<!-- left column -->	
			<h2>Find</h2>		
			{dispatcher->handleEvent v=KatalogTA,wyswietlWyszukiwarkePodstrony}
		</td>
		<td valign="top">
			<div id="main-body-lista-produktow">
				{if isset($kateg.tacID)}
				{assign var='tacID' value=$kateg.tacID}
				<h2>{dispatcher->handleEvent v=KatalogTA,lokalizacjaWybranegoProduktu,$tacID}</h2>
				{/if}
				
				<div id="main_body_content">
				{if empty($produkty)}
				<p>...</p>
				{else}
					<div class="oferta-lista-homepage" style="padding: 4px 0px;">		
						<div class="opis_oferty">
							<!-- <a href ="#"><img src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"informacje.png"}" width="200" height="80"  title="Information"  alt="Information" border="0" align="middle"></a>
							 -->
						</div>
						
						<div class="lista-ikon-oferty-naglowek">
							<!-- <a href ="#"><img src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"menuonline.png"}" width="151" height="80"  title="Menu online"  alt="menuonline" border="0" align="middle"></a> -->
							<a href ="#"><img src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"informacje.png"}" width="200" height="80"  title="Information"  alt="Information" border="0" align="middle"></a>
							<a href ="#"><img src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"mapa.png"}" width="151" height="80"  title="Map"  alt="mapa..." border="0" align="middle"></a>
							<a href ="#"><img src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"delivery.png"}" width="151" height="80"  title="Delivery"  alt="delivery" border="0" align="middle"></a>	
							<a href ="#"><img src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"pomotions.png"}" width="151" height="80"  title="Promotions"  alt="promotion" border="0" align="middle"></a>
						</div>		
						<div class="clear"></div>
					</div>
				{section name=id loop=$produkty}
					<div class="oferta-lista-homepage">		
						<div class="thumbnail" onclick="document.location='{$smarty.const.HTTP_URL}{$settings_katalog_ta.mainpage|default:$page},,show_offert,{$produkty[id].tapID},{$produkty[id].tacID},{$produkty[id].tapNazwa|frendlyurl}.html';" style="background-image: url({$smarty.const.HTTP_URL}photo,/public/users/{$smarty.server.HTTP_HOST|replace:'www.':''}/KatalogTA/{$produkty[id].tapID}/{$produkty[id].tapID}_logo.jpg,50,50,100.jpg); width: 50px; height: 50px; _height:40px; float: left;"></div>
					
						<div class="opis_oferty">
							<a href="{$smarty.const.HTTP_URL}{$settings_katalog_ta.mainpage|default:$page},,show_offert,{$produkty[id].tapID},{$produkty[id].tacID},{$produkty[id].tapNazwa|frendlyurl}.html" title="{$produkty[id].tapNazwa|wordwrap:17:" ":true|html2text}">{$produkty[id].tapNazwa|default:"___"|wordwrap:25:" ":true}</a>
							<p>{$produkty[id].tapLokalizacja}<br/>{$produkty[id].tapAdres}</p>
						</div>
						<div class="lista-ikon-oferty">
							<div>{if $produkty[id].tapProm eq 1}<a href ="{$smarty.const.HTTP_URL}{$page},,show_offert,{$produkty[id].tapID},{$produkty[id].tacID},{$produkty[id].tapNazwa|frendlyurl}.html"><img src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"check.jpg"}" width="43" height="37"  title="Promotions"  alt="promotion" border="0" align="middle"></a>{else}<a href ="{$smarty.const.HTTP_URL}{$page},,show_offert,{$produkty[id].tapID},{$produkty[id].tacID},{$produkty[id].tapNazwa|frendlyurl}.html"><img src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"uncheck.jpg"}" width="38" height="37"  title="Promotions"  alt="promotion" border="0" align="middle"></a>{/if}</div>
							<div>{if $produkty[id].tapDost eq 1}<a href ="{$smarty.const.HTTP_URL}{$page},,show_offert,{$produkty[id].tapID},{$produkty[id].tacID},{$produkty[id].tapNazwa|frendlyurl}.html"><img src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"check.jpg"}" width="43" height="37"  title="Delivery"  alt="delivery" border="0" align="middle"></a>{else}<a href ="{$smarty.const.HTTP_URL}{$page},,show_offert,{$produkty[id].tapID},{$produkty[id].tacID},{$produkty[id].tapNazwa|frendlyurl}.html"><img src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"uncheck.jpg"}" width="38" height="37"  title="Delivery"  alt="delivery" border="0" align="middle"></a>{/if}	</div>
							<div>{if $produkty[id].tapMapa eq 1}<a href ="{$smarty.const.HTTP_URL}{$page},,show_offert,{$produkty[id].tapID},{$produkty[id].tacID},{$produkty[id].tapNazwa|frendlyurl}.html"><img src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"check.jpg"}" width="43" height="37"  title="Map"  alt="mapa..." border="0" align="middle"></a>{else}<a href ="{$smarty.const.HTTP_URL}{$page},,show_offert,{$produkty[id].tapID},{$produkty[id].tacID},{$produkty[id].tapNazwa|frendlyurl}.html"><img src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"uncheck.jpg"}" width="38" height="37"  title="Map"  alt="mapa..." border="0" align="middle"></a>{/if}</div>
							<div style="margin-top: -7px;">{if $produkty[id].tapMenu eq 1}<a href ="{$smarty.const.HTTP_URL}{$page},,show_offert,{$produkty[id].tapID},{$produkty[id].tacID},{$produkty[id].tapNazwa|frendlyurl}.html"><img src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"menu-online-check.png"}" width="142" height="60"  title="Menu online"  alt="menuonline" border="0" align="middle"></a>{else}<a href ="{$smarty.const.HTTP_URL}{$page},,show_offert,{$produkty[id].tapID},{$produkty[id].tacID},{$produkty[id].tapNazwa|frendlyurl}.html"><img src="{$smarty.const.HTTP_URL|cssfiles:$smarty.server.HTTP_HOST:$settings.szablon:$settings.ramka_theme:$settings.ramka_theme_kolor:"uncheck.jpg"}" width="38" height="37"  style="margin-top: 10px;"   title="Menu online"  alt="menuonline" border="0" align="middle"></a>{/if}</div>
						</div>		
						<div class="clear"></div>
					</div>
				{/section}
				{/if}
				</div>	
				<div style="margin: 5px 0; float: right;">
					{if $pierwszaStrona ne 0}
					<a href="{$smarty.const.HTTP_URL}{$settings_katalog_ta.mainpage|default:$page},,show_category_page,{$kateg.tacID},{$pierwszaStrona}.html" class="stronicowanie">{$pierwszaStrona}</a>
					<span class="stronicowanie"><a href="#">...</a></span>			
					{/if}		
					{foreach key=zid item=pagenr from=$apages}
					{if $pagenr ne 0 }
					<a href="{$smarty.const.HTTP_URL}{$settings_katalog_ta.mainpage|default:$page},,show_category_page,{$kateg.tacID},{$pagenr}.html" class="stronicowanie{if $pagenr eq $curPage}_selected{/if}">{$pagenr}</a>
					{/if}
					{/foreach}
					{if $ostatniaStrona ne 0}
					<span class="stronicowanie" ><a href="#">...</a></span><a href="{$smarty.const.HTTP_URL}{$settings_katalog_ta.mainpage|default:$page},,show_category_page,{$kateg.tacID},{$ostatniaStrona}.html" class="stronicowanie">{$ostatniaStrona}</a>				
					{/if}	
				</div>
			</div>
		</td>
	</tr>
</table>